package com.syl.starter.itools.base.beans;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 *  返回两个结果时使用
 * @author syl
 * @create 2018-08-07 17:10
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class DoubleResult<state, data> {
    private state state;
    private data data;

    public DoubleResult(state state) {
        this.state = state;
    }

    public DoubleResult(state state, data data) {
        this.state = state;
        this.data = data;
    }
}
